package cn.ddm.hrm.mapper;

import cn.ddm.hrm.domain.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ldm
 * @since 2022-01-02
 */
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    /**
     * 加载用户权限
     * @param uid
     * @return
     */
    List<Permission> loadPermissionsByUserId(Long uid);
}
